import 'package:mall/utils/sc/state_controller.dart';

import '../model/project_selection_detail_entity.dart';
import '../service/project_selection_service.dart';

class ProjectSelectionSc extends ModelSC<ProjectSelectionDetailEntity> {
  int? id;
  @override
  Future<ProjectSelectionDetailEntity?> loadData() async{
    if (id != null) {
      throw Exception('id should not be null');
    }
    final res = await ProjectSelectionService.projectSelectionDetail(id!);
    return res;
  }
}